
import.meta.env.VITE_APP_TITLE
module.exports = function () {

    return {
        "appId": "appID",
        "productName": "桌面精灵",
        "artifactName": "${productName}-${version}-${arch}.${ext}",
        "copyright": "Copyright © 2023 hx",
        "compression": "normal",
        "files": [
            "dist/**/*",
            "electron/**/*"
        ],
        "asar": {
            "smartUnpack": true
        },
        "extraResources": [
            {
                "from": "./server",
                "to": "server"
            }
        ],
        "win": {
            "icon": "./public/zero.ico",
            "target": [
                {
                    "target": "nsis",
                    "arch": [
                        "x64"
                    ]
                }
            ],
            "requestedExecutionLevel": "highestAvailable"
        },
        "mac": {
            "category": "public.app-category.utilities"
        },

        "nsis": {
            "oneClick": false,
            "perMachine": true,
            "allowElevation": true,
            "allowToChangeInstallationDirectory": true,
            "installerIcon": "public/zero.ico",
            "uninstallerIcon": "public/zero.ico",
            "installerHeader": "public/zero.ico",
            "installerHeaderIcon": "public/zero.ico",
            "installerSidebar": "public/zero.ico",
            "uninstallerSidebar": "public/zero.ico",
            "uninstallDisplayName": "${productName}${version}",
            "createDesktopShortcut": true,
            "createStartMenuShortcut": true,
            "shortcutName": "桌面精灵",
            "deleteAppDataOnUninstall": false,
            "runAfterFinish": true,
            "menuCategory": false
        },

        "directories": {
            "buildResources": "assets",
            "output": "dist_electron"
        }
    }
}
